/**
 * 下午1:30:54
 */
package com.hsnn.medstgmini.pro.project.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hsnn.medstgmini.dao.HibernateSqlUtil;
import com.hsnn.medstgmini.pro.project.dao.BidProjproddrugDao;
import com.hsnn.medstgmini.pro.project.dao.BidPubSettingsDao;
import com.hsnn.medstgmini.pro.project.service.BidProjproddrugManager;
import com.hsnn.medstgmini.util.Pagination;

/**
 * @author hsnn
 *
 */
@Service
public class BidProjproddrugManagerImpl implements BidProjproddrugManager {

	@Autowired
	private HibernateSqlUtil dao;
	
	@Autowired
	private BidProjproddrugDao bidProjproddrugDao;
	
	@Autowired
	private BidPubSettingsDao bidPubSettingsDao;
	
	@Override
	public boolean save(Object obj) {
		if(dao.add(obj)){
			return true ;
		}
		return false;
	}

	@Override
	public boolean update(Object obj) {
		if(dao.update(obj)){
			return true ;
		}
		return false;
	}

	
	@Override
	public Pagination getBidProjectListByExpert(Pagination page) {
		return bidProjproddrugDao.getBidProjectListByExpert(page);
	}

	
	@Override
	public Pagination getBidProjproddrug(Pagination page) {
		return bidProjproddrugDao.getBidProjproddrug(page);
	}

	
	@Override
	public Pagination getBidScoreRule(Pagination page) {
		return bidProjproddrugDao.getBidScoreRule(page);
	}

	
	@Override
	public Object getUniquerResult(Class<?> entity, String key, String value) {
		return bidPubSettingsDao.getUniquerResult(entity, key, value);
	}



}
